package com.zch.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zch.dao.DiscussInfoMapper;
import com.zch.dao.model.DiscussInfo;
import com.zch.dao.model.DiscussInfoExample;

@Service
public class DiscussInfoService {
	@Autowired
	private DiscussInfoMapper discussInfoMapper;

	public int countByExample(DiscussInfoExample example) {
		return this.discussInfoMapper.countByExample(example);
	}

	public DiscussInfo selectByPrimaryKey(String id) {
		return this.discussInfoMapper.selectByPrimaryKey(id);
	}

	public List<DiscussInfo> selectByExample(DiscussInfoExample example) {
		return this.discussInfoMapper.selectByExample(example);
	}


	public int deleteByPrimaryKey(String id) {
		return this.discussInfoMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(DiscussInfo record) {
		return this.discussInfoMapper.updateByPrimaryKeySelective(record);
	}


	public int updateByPrimaryKey(DiscussInfo record) {
		return this.discussInfoMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(DiscussInfoExample example) {
		return this.discussInfoMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(DiscussInfo record, DiscussInfoExample example) {
		return this.discussInfoMapper.updateByExampleSelective(record, example);
	}


	public int updateByExample(DiscussInfo record, DiscussInfoExample example) {
		return this.discussInfoMapper.updateByExample(record, example);
	}

	public int insert(DiscussInfo record) {
		return this.discussInfoMapper.insert(record);
	}

	public int insertSelective(DiscussInfo record) {
		return this.discussInfoMapper.insertSelective(record);
	}

}
